package cisdi.mes.sm.rm.domain;

import java.io.Serializable;
import javax.persistence.*;

import org.codehaus.jackson.map.annotate.JsonSerialize;

import cisdi.mes.utils.base.CustomDateSerializer;

import java.util.Date;

/**
 * The persistent class for the SM_RM_QUALITY_ELEMENT database table.
 * 
 */
@Entity
@org.hibernate.annotations.Entity(dynamicInsert = true, dynamicUpdate = true)
@Table(name = "SM_RM_QUALITY_ELEMENT")
public class SmRmQualityElement implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name = "SM_RM_QUALITY_ELEMENT_ID_GENERATOR", sequenceName = "SEQ_SM", allocationSize = 1)
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SM_RM_QUALITY_ELEMENT_ID_GENERATOR")
	private long id;


	@Column(name = "QUAL_ITEM")
	private String qualItem;


	@Column(name = "QUAL_ITEM_VAL")
	private Double qualItemVal;


	@Column(name = "QUALITY_BATCH")
	private String qualityBatch;

	@JsonSerialize(using = CustomDateSerializer.class)
    @Temporal( TemporalType.TIMESTAMP)
	@Column(name = "TIME_STAMP")
	private Date timeStamp;

	public SmRmQualityElement() {
	}

	public long getId() {
		return this.id;
	}

	public void setId(long id) {
		this.id = id;
	}


	public String getQualItem() {
		return this.qualItem;
	}

	public void setQualItem(String qualItem) {
		this.qualItem = qualItem;
	}


	public Double getQualItemVal() {
		return this.qualItemVal;
	}

	public void setQualItemVal(Double qualItemVal) {
		this.qualItemVal = qualItemVal;
	}


	public String getQualityBatch() {
		return this.qualityBatch;
	}

	public void setQualityBatch(String qualityBatch) {
		this.qualityBatch = qualityBatch;
	}

	public Date getTimeStamp() {
		return this.timeStamp;
	}

	public void setTimeStamp(Date timeStamp) {
		this.timeStamp = timeStamp;
	}

}